import { showMessage } from "react-native-flash-message"

export const showFlashMessage = (message: any, messageType: any, backgroundColor: any, color: any) => {
  showMessage({
    message: message,
    type: messageType, // 'info', 'success', 'warning', or 'danger'
    backgroundColor: backgroundColor, // background color
    color: color, // text color
    textStyle: { textAlign: "center", fontSize: 18, fontWeight: "600" },
    titleStyle: { textAlign: "center", fontSize: 18, fontWeight: "600" },
  })
}
